<?php  
$member_info = db_fetch_array(db_query("SELECT * FROM {users} WHERE uid=%d", $uid));
$link = l(t($member_info['name']), 'user/'. $member_info['uid']); 
print "<span class='eve_ranked_member'>" . $link . '</span>&nbsp;&nbsp;';
$user_certs = eve_certifications_get_user_certs_info($member_info['uid']);
foreach ($user_certs as $cert) { 
	if (($cert['ribbon_image_url'] != NULL) && ($cert['ribbon_image_url'] != '')) {
		$cert_title = "<img border=0 vspace=1 hspace=1 align='top' src='" . $cert['ribbon_image_url'] . "'/>";
		print l($cert_title, $cert['wiki_url'], array('html' => TRUE));
	} else {
		drupal_set_message('ERROR: No ribbon for cert: ' .  $cert['name'], 'error');
	}
	// -- Build the field
}
?>
